package com.zhongjinkang.rhythm.viewModel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 * 这个全局的加载中的监测类
 */
object PublicViewModel : ViewModel() {


    var tokenState =
        MutableLiveData<TokenState>(TokenState.INVALID)

    var isLoginEd=MutableLiveData<Boolean>(false)


    var loadingState=MutableLiveData<LoadingState>(LoadingState.IDEAL)
    enum class TokenState {
        EFFECTIVE, INVALID,

    }

    enum class LoadingState{
        IDEAL, LOAD_SHOW , LOADING,LOAD_HIDE
    }


}